package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.entity.NormalExamine;
import com.ruoyi.system.mapper.NormalExamineMapper;
import com.ruoyi.system.service.NormalExamineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NormalExamineServiceImpl implements NormalExamineService {
    @Autowired
    NormalExamineMapper normalExamineMapper;

    @Override
    public List<NormalExamine> selectList(NormalExamine normalExamine) {
        return normalExamineMapper.selectList(normalExamine);
    }

    @Override
    public NormalExamine selectById(Long id) {
        return normalExamineMapper.selectById(id);
    }

    @Override
    public NormalExamine selectByOrderId(Long orderId) {
        return normalExamineMapper.selectByOrderId(orderId);
    }

    @Override
    public List<NormalExamine> selectByIds(List<Long> ids) {
        return normalExamineMapper.selectByOrderIds(ids);
    }

    @Override
    public Boolean create(NormalExamine normal) {
        return normalExamineMapper.insert(normal) == 1;
    }

    @Override
    public Boolean update(NormalExamine normal) {
        return normalExamineMapper.update(normal) == 1;
    }

    @Override
    public Boolean deleteById(Long id) {
        return normalExamineMapper.deleteById(id) == 1;
    }
}
